package com.woniu51.order.controller;

import com.woniu51.order.utils.SnowflakeIdWorker;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨光
 * @date 2022年04月08日 15:14
 */
@RestController
public class OrderIdController {

    @GetMapping("web/order/queryOrderId")
    public String queryOrderId(){
        long id = SnowflakeIdWorker.generateId();
        System.out.println("order id ="+id);
        return "p"+id;
    }
}
